﻿using System;
using DotNet.HowToUseInterfacesDemo.GoodUse.Models;

namespace DotNet.HowToUseInterfacesDemo.GoodUse.Services
{
    /// <summary>
    /// This is one another implementation of a IMessengerSenderService
    /// </summary>
    public class TextMessageMessengerService : IMessengerSenderService
    {
        public void SendMessageToPerson(Person person, string message)
        {
            if (person.MethodOfContact != MethodOfContact.TextMessage) return;

            /* send text message */

            Console.WriteLine("Text Message sent to {0}", person.FirstName);
        }
    }
}